package com.xunk.system.api.domain;

import com.xunk.common.core.annotation.Excel;
import com.xunk.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 家庭房屋信息对象 sys_home
 * 
 * @author ruoyi
 * @date 2021-03-10
 */
public class SysHome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "房屋编号")
    private Long homeId;

    /** 房屋地址 */
    @Excel(name = "房屋地址")
    private String address;

    /** 对应的家庭id */
    private Long deptId;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String inviteCode;

    /** 模型id */
    private Long modelId;

    /** 房屋昵称 */
    @Excel(name = "房屋名称")
    private String homeName;

    /**
     * 房屋描述
     * A：卧室
     * B：客厅
     */
    @Excel(name = "房屋描述")
    private String description;

    private Long parentId;

    private Long userId;

    public SysHome() {
    }

    public SysHome(String address, Long deptId, String inviteCode) {
        this.address = address;
        this.deptId = deptId;
        this.inviteCode = inviteCode;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getHomeName() {
        return homeName;
    }

    public void setHomeName(String homeName) {
        this.homeName = homeName;
    }

    public void setHomeId(Long homeId)
    {
        this.homeId = homeId;
    }

    public Long getHomeId() 
    {
        return homeId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setInviteCode(String inviteCode) 
    {
        this.inviteCode = inviteCode;
    }

    public String getInviteCode() 
    {
        return inviteCode;
    }
    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("homeId", getHomeId())
            .append("address", getAddress())
            .append("deptId", getDeptId())
            .append("inviteCode", getInviteCode())
            .append("modelId", getModelId())
            .append("homeName", getHomeName())
            .toString();
    }
}
